#ifndef BUFFCLASS_H
#define BUFFCLASS_H

const long long M = 1024 * 1024;
const long long BUFFCLASSLENGTH = 10 * M;
typedef char (*pp)[10000];

// simple class
class BuffClass
{
        
    public:
        BuffClass(long long bufflen = BUFFCLASSLENGTH);
        virtual ~BuffClass();
        char * GetLine();
        bool Empty() const;
        void ClearUsedbuff();  // clean used buff
        const long long CanAddBufflen();
        void AddUsedData(const long long);
        char * GetBuff();
        pp p1;
    private:
        const long long m_sumbufflen;
        long long m_readedbufflen;
        long long m_usedbufflen;
        char * m_buffsrc;
};

#endif
